]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: use a bin for the main overview actor
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Mar 2013 02:17:50 +0000 (21:17 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Mar 2013 16:34:09 +0000 (11:34 -0500)
We'll pack the new messages indicator on top of the current overview
group, so we need to pack it into a ClutterBinLayout first.

https://bugzilla.gnome.org/show_bug.cgi?id=687787

js/ui/overview.js

index 6d487f619a64e8aeef4baa047433cc20707386f1..1f8f0d14a12ad395d0e647523b43c3ba21404993 100644 (file)
@@ -118,6 +118,9 @@ const Overview = new Lang.Class({
         this._desktopFade = new St.Bin();
         global.overlay_group.add_actor(this._desktopFade);
 
+        let layout = new Clutter.BinLayout();
+        this._stack = new Clutter.Actor({ layout_manager: layout });
+
         /* Translators: This is the main view to select
            activities. See also note for "Activities" string. */
         this._overview = new St.BoxLayout({ name: 'overview',
@@ -151,7 +154,8 @@ const Overview = new Lang.Class({
         this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return true; }));
 
         this._overview.hide();
-        global.overlay_group.add_actor(this._overview);
+        this._stack.add_actor(this._overview);
+        global.overlay_group.add_actor(this._stack);
 
         this._coverPane.hide();